package com.zoo.diannaopeijian.mapper;

import com.zoo.diannaopeijian.common.mapper.CommMapper;
import com.zoo.diannaopeijian.domain.Stock;
import com.zoo.diannaopeijian.domain.Ware;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StockMapper extends CommMapper<Stock> {
    int updateStockNum(@Param("value") Integer value, @Param("stockId") Integer stockId);

    List<Map> selectWareStock(
            @Param("componentId") Integer componentId,
            @Param("componentParameterDetailIds") List<Integer> componentParameterDetailIds,
            @Param("repertoryId") Integer repertoryId,
            @Param("ware") Ware ware
    );

    List<Map> selectFuzzyWareStock(
            @Param("componentId") Integer componentId,
            @Param("componentParameterDetailIds") List<Integer> componentParameterDetailIds,
            @Param("repertoryId") Integer repertoryId,
            @Param("ware") Ware ware
    );
}